package com.mikao.dao;

import com.mikao.entity.UserSellOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @author kenny
 */
public interface RecycleOrderDao extends JpaRepository<UserSellOrder, Long>, JpaSpecificationExecutor {

    @Query("select count(a) from UserSellOrder a where a.type=1 and a.status<>6")
    Long findCountTreeorder();
}
